package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.domain.CheckItem;
import com.itheima.domain.Permission;

import java.util.List;

/**
 * @author Zhang_Han
 * @version 1.0
 * @date 2020/10/14 19:22
 */
public interface PermissionDao {

    //分页查询
    public Page<Permission> findByCondition(String queryString);

    //添加数据;
    public void add(Permission permission);

    //删除数据;
    public void deleteByid(Integer id);

    //编辑数据的页面回显;
    public Permission findByid(Integer id);

    //编辑数据;
    public void update(Permission permission);

    //查询全部;
    public List<Permission> findAll();
}
